// 点击屏幕任意位置跳转页面
document.addEventListener("click", function () {
  // 添加入场过渡效果
  const overlay = document.createElement("div");
  overlay.style.cssText = `
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 100;
    opacity: 0;
    transition: opacity 0.5s ease;
  `;
  document.body.appendChild(overlay);

  // 过渡动画后跳转
  setTimeout(() => {
    overlay.style.opacity = "1";
    setTimeout(() => {
      window.location.href = "../html/选择页面.html"; // 替换为目标页面
    }, 300);
  }, 100);
});
